package org.springblade.tms.module.demandorder.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @projectName: BladeX
 * @package: org.springblade.tms.module.demandorder.dto
 * @className: AllocatingWaybillDto
 * @author: yr
 * @description: 分配运单参数列表
 * @date: 2022/3/17 16:47
 */
@Data
public class AllocatingWaybillDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@ApiModelProperty("罐箱号")
	private String containerNo;
	@ApiModelProperty(value = "挂车号")
	private String bindCarNo;
	@ApiModelProperty("车辆id")
	private Long carId;
	@ApiModelProperty("司机id")
	private Long driverId;
	@ApiModelProperty("需求单id")
	private Long requestId;
	@ApiModelProperty("押运员id")
	private Long escortId;
	@ApiModelProperty("运单id")
	private Long transportId;
	@ApiModelProperty("是否拼单")
	private Boolean whetherToMakeASingle = false;
	@ApiModelProperty("罐箱类型")
	private String tankType;
	@ApiModelProperty("物料")
	private List<Materials> materials;
	@ApiModelProperty(value = "铅封号")
	private String leadSealNumber;
	@ApiModelProperty(value = "预计到厂时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime expectedArrivalTimeAtTheFactory;
}
